# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=geocode-glib
pkgver=3.26.2
pkgrel=0
pkgdesc="Geocoding helper library"
url="https://gitlab.gnome.org/GNOME/geocode-glib"
arch="all"
license="LGPL-2.0-or-later"
makedepends="glib-dev gobject-introspection-dev intltool
	json-glib-dev libsoup-dev meson ninja gtk-doc"
options="!check" # no tests
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/geocode-glib/${pkgver%.*}/geocode-glib-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		--sysconfdir=/etc \
		-Denable-installed-tests=false \
		build
	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="b3ef81fac6959f6c4725ca721125cdafbbec69233f321872e17f9035266ed7616018ef54a9082fbd0a83395d18c664144cfe3b431d63744be433f058071cd435  geocode-glib-3.26.2.tar.xz"
